package com.twu.biblioteca.actions;

import com.twu.biblioteca.controllers.MovieController;

public class ViewMovies implements Action {
    private MovieController movieController;

    public ViewMovies(MovieController movieController) {
        this.movieController = movieController;
    }

    @Override
    public String displayName() {
        return "View all movies";
    }

    @Override
    public void perform() {
        System.out.println(movieController.listMovies());
    }
}
